package battleGame;

import java.awt.Toolkit;

public class WarFlag extends GameObject 
{
	public WarFlag( Vector2 newPosition )
	{
		super();
		Init( newPosition );
	}
	
	public WarFlag( double x, double y )
	{
		super();
		Init( new Vector2( x, y ) );
	}
	
	public WarFlag()
	{
		super();
		Init( Vector2.GetRandomPoint() );
	}
	
	public void Init( Vector2 newPosition )
	{
		newPosition = Vector2.GetVector2FromColRow( newPosition.getGridCol(), newPosition.getGridRow());
		position = newPosition;
		spaceRadius = 20;
		icon = Toolkit.getDefaultToolkit().getImage("img//flag//flag.png");
	}
}
